Release 10.1A: OpenEdge Development:
Progress Dynamics Managers API Reference
askQuestion
This procedure handles the display of all question message types and supports any button combination. The default button list is
“OK,CANCEL”.IfOKis passed in, the default label to return isOK. Otherwise, the label is the first button in the list. If available, the default cancel button isCANCEL. Otherwise, the first entry in the list is used. The default title is“Question”.If running server-side, the messages cannot be displayed and must be written to the message log. Because there is no user interface on the server side, the procedure always returns the default button label and answer.
If running client-side, the messages are displayed in a dialog window. The procedure checks the
suppressDisplayproperty in the Session Manager. If the property is set toYES, the procedure does not display the message. It passes the message to the log. This is useful when running take-on procedures on the client side.The messages are passed to the procedure,
af\app\afmessagep.p, on the AppServer for interpretation. This procedure performs the necessary tasks to return the formatted messages. This might include the following tasks:Once the messages are formatted, a client-side message displays using the standard Progress Dynamics message dialog box. On the server-side, the Progress Dynamics error log is updated with the error and, if possible, an e-mail is sent to the currently logged-in user to notify them. This process also occurs if the error log flag is set to
Location: af\app\afsesmngrp.i Parameters:YESor message display suppression is enabled.INPUT pcMessageList AS CHARACTERINPUT pcButtonList AS CHARACTERINPUT pcDefaultButton AS CHARACTERINPUT pcCancelButton AS CHARACTERINPUT pcMessageTitle AS CHARACTERINPUT pcDataType AS CHARACTERINPUT pcFormat AS CHARACTERINPUT-OUTPUT pcAnswer AS CHARACTEROUTPUT pcButtonPressed AS CHARACTERNotes: When running client-side, the procedure returns the untranslated button text of the pressed button. When running server-side, the untranslated button text of the default button is returned. Examples: See thelogMessageprocedure inaf\cod2\fulloobjcw.w.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |